package com.qf.xml;

import com.qf.xml.service.UserService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class MainApp {
    public static void main(String[] args) {
        ApplicationContext ioc = new ClassPathXmlApplicationContext("application-advice.xml");

        UserService userService = ioc.getBean(UserService.class);

//        userService.findAll();

        userService.findById(10);
//
//        userService.delete(2);
    }
}
